home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / mxml_161.arc / GETMAIL.BAT < prev    next >
DOS Batch File  |  1991-08-04  |  936b  |  33 lines

  1. rem This is a sample file of fetching local mail with MaxMail
  2.  
  3. @echo off
  4. rem this is my Maximus root directory
  5. cdd d:\max
  6.  
  7. rem lastuser.cd was Lastuser.bbs when I logged onto my system
  8. rem Use something simular. Log on, then copy lastuser.bbs to a saved
  9. rem name so you can keep it
  10. copy lastuser.cd lastus09.bbs
  11.  
  12. rem load up maxmail with a dummy task number, Local Mode, and /N switch
  13. rem so that archive is saved
  14. maxmail /l /n /t9
  15.  
  16. rem if it returns errorlevel 7, we have an archive
  17. if errorlevel 7 goto moveit
  18. goto end
  19.  
  20. rem I use a temp dir T:, but it could be your Maximus root dor elsewise
  21. rem You will have a QWK0009 (task) created off the work directory. I move
  22. rem the archive to a floppy here, then remove temo subdir. MaxMail will
  23. rem normally remove subdir UNLESS you have /N switch...
  24. :moveit
  25. pause
  26. move t:\qwk0009\crn*.qwk b:
  27. rd t:\qwk0009
  28.  
  29. rem a little bit of cleanup
  30. :end
  31. del maxmai09.log
  32.  
  33.